package com.wy.dao;

import com.wy.bean.ParkingBean;
import com.wy.model.sys.ParkingEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
@Mapper
public interface ParkingMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(ParkingEntity record);

    int insertSelective(ParkingEntity record);

    ParkingEntity selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(ParkingEntity record);

    int updateByPrimaryKey(ParkingEntity record);

    List<ParkingBean> parkingList(@Param("pageSize") int pageSize,
                               @Param("start") int start,
                               @Param("type") String type,
                               @Param("status") String status,
                               @Param("residenceId") String residenceId,
                               @Param("parkId") String parkId);

    int  parkingSize(@Param("pageSize") int pageSize,
                                  @Param("start") int start,
                                  @Param("type") String type,
                                  @Param("status") String status,
                                  @Param("residenceId") String residenceId,
                                  @Param("parkId") String parkId);

    int deleteByPrimaryKeys(@Param("id") List<String> groupId);
}